<!--
 * @Author: your name
 * @Date: 2021-07-17 20:38:13
 * @LastEditTime: 2021-07-21 15:19:04
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \VUE\my-site\src\App.vue
-->
<template>
  <div>
    app组件
    <pages :total="total" :current="current" @pagerChange="pagerChange($event)" />
  </div>
</template>

<script>
import Pages from './index.vue'
  export default {
  components:{
    Pages
  },
  data() {
    return {
      total:302,
      current:1
    }
  },
  methods: {
    pagerChange(newp){
      this.current = newp;
    }
  },
}
</script>

